//
//  SecondTableViewCell.m
//  010-tableView自定义cell
//
//  Created by dllo on 16/7/27.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "SecondTableViewCell.h"

@interface SecondTableViewCell()
@property (nonatomic, strong) UIImageView *mImageView;
@end
@implementation SecondTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _mImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_mImageView];
        
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _mImageView.frame = CGRectMake(0, 0, 414, self.contentView.frame.size.height);
}
- (void)setDataModel:(DataModel *)dataModel {
    _dataModel = dataModel;
    _mImageView.image = [UIImage imageNamed:dataModel.imageNameStr];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
